package lab02.Test05;

/**
 * Created by tanfei on 2017/10/15.
 */
public class Cube {

        float length;
        float width;
        float height;

    public void setDenmo(){
        this.length=6;
        this.width=6;
        this.height=6;
    }
    //行为:立方体的体积
    public float getVolume(){
        return this.length*this.width*this.height;
    }
    //构造函数

    //main函数
    public static void main(String[] args) {
        Cube b=new Cube();
        b.setDenmo();

    }
    }



